const { Sequelize } = require('sequelize');
const db = new Sequelize(
    //数据库、用户名、密码
    "blog","root","root",
    {
        host: "127.0.0.1",
        dialect: "mysql",
        // v5 and should be removed
        // operatorsAliases: false,
        pool: {
            max: 5,
            min: 0,
            acquire:30000,
            idle:10000
        }
    }
)
module.exports = db